-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jedd/cxpla 154 enforce nullability analysers in objects and use required #202
Jedd/cxpla 154 enforce nullability analysers in objects and use required #202
Conversation
…-nullability-analysers-in-objects-and-use-required
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #202 +/- ##
===========================================
+ Coverage 57.26% 69.09% +11.82%
===========================================
Files 243 259 +16
Lines 10023 10739 +716
Branches 1090 1091 +1
===========================================
+ Hits 5740 7420 +1680
+ Misses 4026 2972 -1054
- Partials 257 347 +90 ☔ View full report in Codecov by Sentry. |
…in-objects-and-use-required
SetControlPoints(controlPoints); | ||
} | ||
|
||
public Surface(IList<double> pointData, int countU, int countV) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likewise, if the previous constructor is used and we are recommending to not set pointData directly, this constructor should be removed instead
Enables for the
Speckle.Objects
project the remaining nullability analysers for ensuring correct nullability and use ofrequired
keyword of our object models.CS8618 - Non-nullable variable must contain a non-null value when exiting constructor.
required
keyword for Pontcloud and SurfaceSurface
class has some complex behaviour around the flattening the control point data for efficient serilization. For now I've had to expose a parametered constructor in addition torequired
properties, we could simplyfy this by re-structuring the class a little.